package com.xhh.nphm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.system.domain.MmailWorkLogEty;
import com.xhh.nphm.system.mapper.MMailWorkFormLogDao;
import com.xhh.nphm.system.mapper.MmailWorkLogDao;
import com.xhh.nphm.system.service.IMmailWorkLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MmailWorkLogServiceImpl extends ServiceImpl<MmailWorkLogDao, MmailWorkLogEty> implements IMmailWorkLogService {
    @Autowired
    private MMailWorkFormLogDao mMailWorkFormLogDao;
    /**
     * 工单id对应回访记录 列表数据
     * @param wfId
     * @return
     */
    @Override
    public List<Map<String, Object>> logListJson(Integer wfId) {
        return mMailWorkFormLogDao.logListJson(wfId);
    }

    /**
     * 切换公开状态
     *
     * @param logId 日志id
     * @return 影响行数
     */
    @Override
    public int updateState(Integer logId) {
        return getBaseMapper().updateState(logId);
    }
}
